package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heima.model.article.pojos.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<ApArticle> {
    List<ApArticle> load(
            IPage<ApArticle> page,
            @Param("size") Integer size,
            @Param("tag") String tag,
             @Param("maxBehotTime") Date maxBehotTime,
             @Param("minBehotTime") Date minBehotTime,
             @Param("type") Short type);
}

